package model

import common.Config
import model.View
import org.itheima.kotlin.game.core.Painter

class GameOver:View() {


    override var width: Int=96
    override var height: Int=96



    override fun draw() {

        x=(Config.DEFAULT_WINDOW_WIDTH-width)/2
        y=(Config.DEFAULT_WINDOW_HEIGHT-height)/2

        Painter.drawImage("img/gameover.gif",x,y)

    }
}